<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
request.setAttribute("__root__", basePath);
request.setAttribute("__rootStatic__", basePath+"/html");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
        <title>彩蛋校园</title>
        <meta charset="utf-8" />
        <meta name="viewport" content="width=device-width,user-scalable=no" />
        <link href="${__rootStatic__}/css/reset.css" rel="stylesheet" />
        <link href="${__rootStatic__}/css/layout.css" rel="stylesheet" />
    </head>
<body>
        <section id="huodongview">
            <header class="bottomline"><h1>活动详情</h1></header>
            <article class="liuyan">
                <div id="huodonginfo">
                    <table>
                        <tr>
                            <td>
                                <div><img src="http://api.caidan360.com/upfile/${e.avatar}" /></div>
                            </td>
                            <td>
                                <h2>${e.nickname}</h2>
                                <h3>${e.huodongshijian}</h3>
                                <h2>${e.huodongshijian}</h2>
                            </td>
                            <td>
                                <img src="${__rootStatic__}/img/huodong/f${e.fenleiid }.png"/>
                                <h4>${e.fenleiid }</h4>
                            </td>
                        </tr>
                    </table>
                    <h5>${e.title }</h5>
                    <p>${e.neirong }</p>
                </div>
                <h2 id="yibaomingde">已报名的同学</h2>
                <ul id="yibaoming">
                	<c:if test="${n eq null }">
                		<p>还没有人报名！</p>
                	</c:if>
                	<c:if test="${n ne null }">
                		<c:forEach items="${n}" var="bm">
                			<li><img src="http://api.caidan360.com/upfile/${bm.avatar}"/></li>
                		</c:forEach>
                	</c:if>
                </ul>
                <h2>留言</h2>
                <ul id="huodongliuyanlist" class="liuyanlist">
                	<c:forEach items="${f}" var="ly">
                			<li>
	                            <table>
	                                <tr>
	                                    <td>
	                                        <div><img src="http://api.caidan360.com/upfile/${ly.avatar}"/></div>
	                                    </td>
	                                    <td>${ly.nickname}</td>
	                                    <td>${ly.shijian}</td>
	                                </tr>
	                            </table>
	                            <p>${ly.neirong}</p>
	                        </li>
                	</c:forEach>
                </ul>
            </article>
        </section>
        <footer>
            <div>
                <img src="${__rootStatic__}/img/icon.png" /><span>彩蛋校园</span>
                上彩蛋 享校园
            </div>
            <p><a href="http://a.app.qq.com/o/simple.jsp?pkgname=com.rsseasy.task.caidan" target="_blank">免费下载</a></p>
        </footer>
    </body>
</html>